﻿<local:SettingsPageBase
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:Com.PhilChuang.Mobile.Apps.LocationSender.Ui.Views.Impl.Pages"
    xmlns:Microsoft_Phone_Controls_Maps="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"
    x:Class="Com.PhilChuang.Mobile.Apps.LocationSender.Ui.Views.Impl.Pages.SettingsPage"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768" d:DataContext="{d:DesignData /SampleData/SettingsViewModelSampleData.xaml}"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True"
	IsEnabled="{Binding AllControlsEnabled}">

	<!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

		<!--TitlePanel contains the name of the application and page title-->
		<StackPanel x:Name="TitlePanel" Margin="12,0,0,12">
			<TextBlock x:Name="ApplicationTitle" Margin="-12,0,0,0" Text="{Binding AppVersionString}" Style="{StaticResource PhoneTextNormalStyle}"/>
			<TextBlock x:Name="PageTitle" Text="Settings" Margin="12,-7,0,-7" Style="{StaticResource PhoneTextTitle1Style}"/>
		</StackPanel>

		<!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        	<Grid.RowDefinitions>
        		<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
			</Grid.RowDefinitions>

			<Button x:Name="g_btn_DisableLocationServices" Content="Disable Location Services" Grid.Row="0" Click="g_btn_DisableLocationServices_Click" />
			<!--CheckBox x:Name="field_ReportAnalyticsData" Content="Provide anonymous usage statistics" Grid.Row="1" IsChecked="{Binding ReportAnalyticsData, Mode=TwoWay}" /-->
			<TextBlock Text="Privacy Policy" Style="{StaticResource PhoneTextTitle2Style}" Grid.Row="2" />
			<TextBlock Style="{StaticResource PhoneTextNormalStyle}" Grid.Row="3" TextWrapping="Wrap">
				<TextBlock.Foreground>
					<SolidColorBrush Color="{StaticResource PhoneSubtleColor}"/>
				</TextBlock.Foreground>
				<TextBlock.Text>This application uses your location data for the purpose of sending text or email messages only to the recipients that you choose.   Your location data is not shared with any other parties.<!--

The anonymous usage statistics helps the developer better understand how users interact with the application, does not include any personal information, and does not consume significant bandwidth.
				--></TextBlock.Text>
			</TextBlock>

		</Grid>
		
    </Grid>

</local:SettingsPageBase>